package cn.itcast.order.config;

import cn.itcast.order.interceptor.IJPayInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @description TODO
 * @author sxt
 * @date 2024/4/28 17:31
 * @version 1.0
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new IJPayInterceptor()).addPathPatterns("/**");
    }
}
